﻿/**
 * config
 */
var path = require('path');
var config = {
  //微信小程序用户端配置信息用户端
  access_token: "",
  appID: "wx21e73e404bf9a091",//wx1021ad5905a65742 
  appSecret: "d4249431b7b7cf7051664f9812b7092b",//d4249431b7b7cf7051664f9812b7092b
  token: "hunanjusekeji",
  //微信小程序用户端请求数据接口
  appSecreturl: "https://api.weixin.qq.com/cgi-bin/token?",
  openIDurl: "https://api.weixin.qq.com/sns/jscode2session?",

  //微信小程序用户端配置信息医生端
  access_token1: "",
  appID1: "wx1021ad5905a65742",//wx1021ad5905a65742 
  appSecret1: "efd82afae5b4b4785bd12760d91fe1b1",//efd82afae5b4b4785bd12760d91fe1b1
  token1: "hunanjusekeji",

  //微信公众号配置信息
  //开发者IDwx23b8be8cc2fe7a5e
  id: "wx9c60eddc45fe42be",//wx231fe3ce15f22413
  //开发者密码d13a7598ae9e40dc4668acb507debfb2
  AppSecret: "ZPcgiCCDl4ctgtjzCFN2V6QFGbRP1dQIKN9id7JhJBC",//1688ecdd27ef45264a62a09e0e43fb11
  getuserinfo_api: "https://api.weixin.qq.com/cgi-bin/user/info?access_token=access_token&openid=openid&lang=zh_CN",
  senMsg_api: "https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=",
  pageAuth: "https://open.weixin.qq.com/connect/oauth2/authorize?appid=",



  jwtSecret:"juseSecretKey",
  // debug 为 true 时，用于本地调试
  debug: true,
  // 域名xcx.juseyx.cn
  host: 'hnzjjszc.imwork.net',
  // 默认的Google tracker ID，自有站点请修改，申请地址：http://www.google.com/analytics/
  google_tracker_id: '',
  // 默认的cnzz tracker ID，自有站点请修改
  cnzz_tracker_id: '',

  //正式发布到ECS时 请将mongodb和redis的 连接修改为 阿里云内网连接。
  // mongodb 配置
  db: 'mongodb://jmypuser:Kissbh0258@120.26.55.240:3717/jusexcx',//mongodb://jmypuser:Kissbh0258@120.26.55.240:3717/jusexcx
  // db:"yaobiao520juse:Jusekissbh2017@rm-bp1q46z92k88877ta.mysql.rds.aliyuncs.com/gyfxiaochengxu?pool=true",

  // redis 配置
  redis_host: '47.90.123.205',
  redis_port: 6379,
  redis_Auth: "myRedis",

  session_secret: 'node_juse_secret', // 务必修改
  auth_cookie_name: 'node_juse',
  //mysql配置
  mysql_options: {
    url: "rm-bp1q46z92k88877ta.mysql.rds.aliyuncs.com",
    port: 3306,
    database: "jusexiaoshuo",
    username: "juseloveme521",
    passwod: "Jusekissbh2017",
  },
  // 程序运行的端口
  port: 80,
  //OSS配置
  region: 'oss-cn-hangzhou',//oss-cn-hangzhou
  accessKeyId: 'LTAIhhKx9uqhbU3W',//LTAIhhKx9uqhbU3W
  accessKeySecret: 'DuzQD0dplDRMOxf5dQmO9wErJJQS0z',//DuzQD0dplDRMOxf5dQmO9wErJJQS0z
  bucket: "jusexcx",
  // 邮箱配置
  mail_opts: {
    host: 'smtp.mxhichina.com',
    port: 465,
    auth: {
      user: 'admin@juseyun.com',
      pass: 'Kissbh2016'
    }
  },
  //微信支付相关配置信息:
  //商户号
  mch_id: "1233407602",
  //密钥
  key: "2b0c92124e003645e778886367686b15",
  //微信统一下单接口 不需要证书
  wechatPaymenturl: "https://api.mch.weixin.qq.com/pay/unifiedorder",
  //查询订单 不需要证书
  orderquery: "https://api.mch.weixin.qq.com/pay/orderquery",
  //关闭订单 不需要证书
  closeorder: "https://api.mch.weixin.qq.com/pay/closeorder",
  //申请退款 请求需要双向证书。
  refund: "https://api.mch.weixin.qq.com/secapi/pay/refund",
  //查询退款 不需要证书
  refundquery: "https://api.mch.weixin.qq.com/pay/refundquery",
  //下载对账单 不需要证书
  downloadbill: "https://api.mch.weixin.qq.com/pay/downloadbill",
  //交易保障 不需要证书
  report: "https://api.mch.weixin.qq.com/payitil/report",
  //拉取订单评价数据 需要证书
  batchquerycomment: "https://api.mch.weixin.qq.com/billcommentsp/batchquerycomment"

};

module.exports = config;
